/**
 * 
 */
package us.gaaoc.framework.webapp.backingbeans.caseTypes;

import java.util.ArrayList;
import java.util.List;

import us.gaaoc.framework.dao.ModelFacade;
import us.gaaoc.framework.model.CaseRecordAction;
import us.gaaoc.framework.webapp.backingbeans.profile.Links;

/**
 * @author Sukahda Tapshalkar
 * Mar 23, 2007
 *
 */
public class OCSSCaseType {
	
	/**
	 * Property
	 */
	private List<Links> menu;
	
	private ModelFacade facade;
	
	public OCSSCaseType(ModelFacade facade) {
		this.facade = facade;
	}

	/**
	 * @return Returns the menu.
	 */
	public List<Links> getMenu() {
		this.menu = new ArrayList<Links>();
		/*
		this.menu.add(new Links("Establishes Child Support","Establishment" ));
		this.menu.add(new Links( "Defendant is in contempt of existing order for child support","Contempt"));
		this.menu.add(new Links("A revision or modification to an existing order" +
				"				 is to be made, such as addition or removal of children covered by" +
				"				 the support order","Revision/Modification" ));
		
		*/
		
		/*
		this.menu.add(new Links("establishment","Establishment" ));
		this.menu.add(new Links("contempt","Contempt"));
		this.menu.add(new Links("reviewOrModification","Review/Modification" ));
		this.menu.add(new Links("motionToRedirect","Motion To Redirect" ));
		this.menu.add(new Links("motionToTransfer","Motion To Transfer" ));
		this.menu.add(new Links("registration","Registration" ));
		*/
		
		/* We want all Child Support case actions */
		for(CaseRecordAction action : this.facade.getCaseRecordActionsByCaseType(1))
		{
			this.menu.add(new Links(Integer.toString(action.getId()),action.getDescription()));
		}
		
		
		
		
		return menu;
	}

	/**
	 * @param menu
	 *            The menu to set.
	 */
	public void setMenu(List<Links> menu) {
		this.menu = menu;
	}
}
